package com.ddwl.wallet.repository;

import com.ddwl.schema.bo.base.PageBo;
import com.ddwl.schema.bo.wallet.UserCouponBo;
import com.ddwl.wallet.dao.model.UserCoupon;

import java.util.Collection;
import java.util.List;

public interface UserCouponRepositoryAdvance {

    List<UserCoupon> findByUserIdAndCouponId(String userId, Collection<String> couponIds);

    Long countByUserIdAndCouponId(String userId, String couponId);

    List<UserCoupon> findByIds(List<String> userCouponIds);

    List<UserCoupon> findByUserId(PageBo<UserCouponBo> pageBo);

    void updateExpire();
}
